package com.sskj.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.sskj.api.domain.SysUser;
import com.sskj.api.domain.Role;
import com.sskj.api.domain.UserRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserRoleMapper extends BaseMapper<UserRole> {

    List<Role> listByUserId(@Param("userId") Long userId);

    IPage<SysUser> bindUserIds(IPage<UserRole> pageConfig, @Param("roleId") Long roleId);
}
